package com.mongo.service;

import com.mongo.pojo.User;
import com.mongo.repository.UserRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: where
 * @Date: 2022/07/06/14:57
 * @Description:
 */
@Service
public class ChangUserService {
    @Autowired
    private UserRepository userRepository;

    public void change() {
        User save = userRepository.save(new User());
        System.out.println(save);
    }

}
